import { useState } from 'react';

const useUser = () => {
  const [count, setCount] = useState<number>(5);

  const add = () => {
    setCount((v) => v + 1);
  };

  const minus = () => {
    setCount((v) => v - 1);
  };

  return {
    count,
    add,
    minus,
  };
};

export default useUser;
